import {
  Entity,
  PrimaryGeneratedColumn,
  Column,
  ManyToOne,
} from "../../../package/index.js";
import { User } from "./user.entity.js";

@Entity("sample_many_to_one_photo")
export class Photo {
  @PrimaryGeneratedColumn()
  id: number;

  @Column()
  url: string;

  @ManyToOne(() => User, (user) => user.photos)
  user: User;
}
